package com.syyo.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * @ author: wang
 * @ date: 2021/3/30 17:05
 * @ Description: 封装检索条件
 *
 * catalog3Id=225&keyword=小米&sort=saleCount_asc&skuPrice=1_500&attrs=2_5寸:6寸
 */
@Data
public class SearchParam {

    private String keyword; //全文匹配关键字
    private Long catalog3Id; //三级分类id

    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     *
     */
    private String sort; //排序


    /**
     * hasStock=0/1  是否有货
     * skuPrice=1_500/_500/500_  价格区间  1_500  _500(500以内)  500_(500以上)
     * brandId=1
     * attrs=2_5寸:6寸    2是属性id，5寸是属性值
     */
    private Integer hasStock; //是否有货
    private String skuPrice; //价格区间
    private List<Long> brandId; //多个品牌
    private List<String> attrs; //属性参数

    private Integer pageNum = 1; //页数

    private String _queryString; //原生的查询条件



}
